﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CabDemo.Models;

public class DbHelper
{

    public static System.Nullable<Guid> SesID = null;
    public static string Phone = String.Empty;

    public static List<string> Phones = new List<string>();

    private static string pincode = String.Empty;

    public static void SendPinCode()
    {
        UserModelDataContext db = new UserModelDataContext();
        db.sp_cab_make_pin_code(SesID, ref pincode, "pay", 4);
        db.sp_cab_send_sms(Phone, "Ваш пароль: "+ pincode);
    }

    public static void CheckPin(string PinCode)
    {

    }
}
